#ifndef _TEXT_H
#define _TEXT_H

#include <windows.h>
#include <GL\GL.h>
#include <GL\GLU.h>
#include <string>
#include <map>

struct Font
{
  GLuint base;
};

class FontManager
{
public:
  static FontManager* getInstance();
  ~FontManager();
  bool loadFont(std::string name, std::string font, int height, bool italic, bool underline, bool strikeout);
  void print(std::string name, const char* fmt, ...);
  void setHDC(HDC hDC);
protected:
  FontManager();
private:
  void freeFont(std::string name);
  typedef std::map<std::string, Font> fontMap;
  fontMap fonts;
  HDC m_hDC;
};


#endif